package shopping.service;



import shopping.bean.Clothes;
import shopping.bean.Page;

import java.util.List;

public interface ClothesService {
    //    添加图书
    public void addClothes(Clothes clothes);
    //    删除图书---根据id删除
    public void deleteClothesById(Integer id);
    //    修改图书
    public void updateClothes(Clothes clothes);
    //    查询图书---根据id查询
    public Clothes queryClothesById(Integer id);
    //    查询所有图书
    public List<Clothes> queryClothess();

    Page<Clothes> page(int pageNo, int pageSize);

    Page<Clothes> pageByPrice(int pageNo, int pageSize, int min, int max);

    Page<Clothes> pageByName(int pageNo, int pageSize, String name);

    Page<Clothes> pageByKind(int pageNo, int pageSize, String kind);

    Clothes queryClothesByName(String name);
}
